<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>管理员信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- 确保适当的绘制和触屏缩放 -->
    <link rel="stylesheet" href="{$url_css}bootstrap.min.css" type="text/css">
    <style type="text/css">
        .true{
            border-radius:2px;
            color:green;
        }
        .false{
            border-radius:2px;
            color:red;
        }
        blockquote{
            background: #eee;
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 0;
        }
        dl,dd{
            padding: 2px 0;
        }
        dl{
            margin: 10px 0 0 20px;
        }
        dt{
            margin-bottom: 10px;
        }
        dd{
            margin-left: 10px;
        }
    </style>
</head>
<body>
    <div class="container" style="width:96%">
        <table class="table table-bordered table-striped" align="center" id="list">
            <tr>
                <td style="width:200px">用户ID：</td>
                <td>{$user.AdminUserId}</td>
            </tr>
            <tr>
                <td style="width:200px">真实姓名：</td>
                <td>{$user.AdminUserName}</td>
            </tr>
            <tr>
                <td style="width:200px">管理组：</td>
                <td>{$user.GroupData.GroupName}</td>
            </tr>
            <tr>
                <td colspan="2">拥有权限列表 ( <span class="glyphicon glyphicon-ok true"></span> 表示已拥有权限，<span class="glyphicon glyphicon-remove false"></span> 表示不具有权限 )</td>
            </tr>
            <tr>
                <td colspan="2" style="background:#fff">
                    {foreach $menu as $v}
                        <div class="col-xs-2">
                            <blockquote>{$v.Name}</blockquote>
                            {foreach $v.child as $v2}
                                <dl>
                                    <dt>{$v2.Name}</dt>
                                    {foreach $v2.child as $v3}
                                        <dd>
                                            {if isset($auth[$v3.Key])}
                                                <span class="glyphicon glyphicon-ok true"></span>
                                            {else}
                                                <span class="glyphicon glyphicon-remove false"></span>
                                            {/if}
                                            {$v3.Name}
                                        </dd>
                                    {/foreach}
                                </dl>
                            {/foreach}
                        </div>
                    {/foreach}
                </td>
            </tr>
        </table>
    </div>

</body>
<html>
    